﻿<!-- 引入线路 -->
<%@page import="com.mmy.domain.line.TLineBase"%>
<%@page import="com.mmy.domain.line.TLineTrip"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<jsp:include page="/WEB-INF/jsp/includeb.jsp"></jsp:include>
</head>
<body>
	<div id="off-canvas-container" class="off-canvas-container">
		<jsp:include page="/WEB-INF/jsp/BackHeader.jsp"></jsp:include>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main Start -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<main class="at-padding-large-bottom"> <article> <header
			class="bg-light at-padding-large-top at-padding-large-bottom at-margin-large-bottom">
		<div class="page-header container">
			<div class="row">
				<div class="span-5 col">
					<h1>线路管理</h1>
				</div>

			</div>
		</div>
		</header> <section class="container"> <!-- 新建线路基本信息 -->
		<div class="information">

			<h4 class="info-h4">
				<i class="fa fa-caret-right" aria-hidden="true"></i>修改线路行程信息
			</h4>
			<div class="input-container">
				<input type="button" id="btn_addtr" class="btn" value="增行"
					onClick="addTables()">

				<table id="tripTable" class="info-table">
					<tbody>
						<tr>
							<td colspan="8">详情 <input type="hidden" id="LineID"
								name="LineID" value="${iLineID }" /></td>
							<td>操作</td>
						</tr>

					</tbody>
					<c:forEach items="${lstLineTrip}" var="lstLineTrip"
						varStatus="status" begin="0">
						<tbody id="tbody${status.index }">
							<tr>
								<th rowspan="11"><label for="TripDay${status.index }">天数</label></th>
								<td rowspan="11"><input type="number"
									id="TripDay${status.index }" name="Day" size="2"
									value="${lstLineTrip.getDay() }" /></td>
								<th><label for="TripAddress${status.index }">地点</label></th>
								<td><input type="text" id="TripAddress${status.index }"
									name="Address" value="${lstLineTrip.getAddress() }" /></td>
								<th><label for="TripStay${status.index }">住宿</label></th>
								<td><input type="text" id="TripStay${status.index }"
									name="Stay" value="${lstLineTrip.getStay() }" /></td>
								<th><label for="TripMeal${status.index }">含餐</label></th>
								<td><input type="text" id="TripMeal${status.index }"
									name="Meal" value="${lstLineTrip.getMeal() }" /></td>
								<td rowspan="11"><input type="button" class="btn"
									onclick="removeTr(${status.index })" value="删除"></td>
							</tr>
							<tr>
								<th><label for="TripTrip${status.index }">具体行程</label></th>
								<td colspan="5"><textarea id="TripTrip${status.index }"
										name="Trip"> ${lstLineTrip.getTrip() }</textarea></td>
							</tr>
							<tr>
								<th rowspan="4"><label for="TripHotel1${status.index }">酒店照片</label></th>
								<td><label for="TripHotel1${status.index }">图片1:</label></td>
								<td colspan="4"><input type="file"
									id="TripHotel1${status.index }" name="HotelPath1"
									value="${lstLineTrip.getHotelPath1() }" /></td>
							</tr>
							<tr>
								<td><label for="TripHotel2${status.index }">图片2:</label></td>
								<td colspan="4"><input type="file"
									id="TripHotel2${status.index }" name="HotelPath2"
									value="${lstLineTrip.getHotelPath2() }" /></td>
							</tr>
							<tr>
								<td><label for="TripHotel3${status.index }">图片3:</label></td>
								<td colspan="4"><input type="file"
									id="TripHotel3${status.index }" name="HotelPath3"
									value="${lstLineTrip.getHotelPath3() }" /></td>
							</tr>
							<tr>
								<td><label for="TripHotel4${status.index }">图片4:</label></td>
								<td colspan="4"><input type="file"
									id="TripHotel4${status.index }" name="HotelPath4"
									value="${lstLineTrip.getHotelPath4() }" /></td>
							</tr>
							<tr>
								<th rowspan="4"><label for="TripScenic1${status.index }">景点照片</label></th>
								<td><label for="TripScenic1${status.index }">图片1:</label></td>
								<td colspan="4"><input type="file"
									id="TripScenic1${status.index }" name="ScenicPath1"
									value="${lstLineTrip.getScenicPath1() }" /></td>
							</tr>
							<tr>
								<td><label for="TripScenic2${status.index }">图片2:</label></td>
								<td colspan="4"><input type="file"
									id="TripScenic2${status.index }" name="ScenicPath2"
									value="${lstLineTrip.getScenicPath2() }" /></td>
							</tr>
							<tr>
								<td><label for="TripScenic3${status.index }">图片3:</label></td>
								<td colspan="4"><input type="file"
									id="TripScenic3${status.index }" name="ScenicPath3"
									value="${lstLineTrip.getScenicPath3() }" /></td>
							</tr>
							<tr>
								<td><label for="TripScenic4${status.index }">图片4:</label></td>
								<td colspan="4"><input type="file"
									id="TripScenic4${status.index }" name="ScenicPath4"
									value="${lstLineTrip.getScenicPath4() }" /></td>
							</tr>
							<tr>
								<td><label for="TripMemo${status.index }">备注:</label></td>
								<td colspan="5"><textarea id="TripMemo${status.index }"
										name="Memo">${lstLineTrip.getMemo() }</textarea></td>
							</tr>
						</tbody>

					</c:forEach>
				</table>
				<center>
					<input type="submit" class="btn" value="保存"
						onclick="saveUpdateLineTrip()" /> <input type="button" class="btn"
						value="返回" onclick="rehidder()" />
				</center>
			</div>

		</div>
		</section> </article> </main>
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->
		<!-- Main End -->
		<!-- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -->

		<jsp:include page="/WEB-INF/jsp/Footer.jsp"></jsp:include>
	</div>
	<jsp:include page="/WEB-INF/jsp/include2.jsp"></jsp:include>

</body>

</html>